package pl.edu.pk.cc.common.dto;

import java.util.ArrayList;
import java.util.Date;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

public class CCWorkerDTO implements CCResourceDTO {
	private Long id;
	private String name;
	private String surname;
	private Long pesel;
	private Date birthdate;
	private String address;
	private CCLoginDataDTO login;

	private CCEmploymentDTO emp;
	private Set<CCCallHistoryDTO> calls = new HashSet<CCCallHistoryDTO>();

	public CCWorkerDTO() {
	}

	public CCWorkerDTO(String name, String surname, Long pesel, Date birthdate, String address) {
		this.name = name;
		this.surname = surname;
		this.pesel = pesel;
		this.birthdate = birthdate;
		this.address = address;
	}

	@Override
	public String toString() {
		return login + " " + name + " " + surname + " " + id;
	}

	public Long getId() {
		return id;
	}

	@SuppressWarnings("unused")
	private void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getSurname() {
		return surname;
	}

	public void setSurname(String surname) {
		this.surname = surname;
	}

	public Long getPesel() {
		return pesel;
	}

	public void setPesel(Long pesel) {
		this.pesel = pesel;
	}

	public Date getBirthdate() {
		return birthdate;
	}

	public void setBirthdate(Date birthdate) {
		this.birthdate = birthdate;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public CCEmploymentDTO getEmp() {
		return emp;
	}

	public void setEmp(CCEmploymentDTO emp) {
		this.emp = emp;
	}

	public Set<CCCallHistoryDTO> getCalls() {
		return calls;
	}

	public void setCalls(Set<CCCallHistoryDTO> calls) {
		this.calls = calls;
	}

	public CCLoginDataDTO getLogin() {
		return login;
	}

	public void setLogin(CCLoginDataDTO login) {
		this.login = login;
	}

	public void updateWorker(String name, String surname, Long pesel, Date birthdate,
			String address) {
		this.name = name;
		this.surname = surname;
		this.pesel = pesel;
		this.birthdate = birthdate;
		this.address = address;
	}

	
}
